<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.List" %>

<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2016/9/1
  Time: 22:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
   int   max= (Integer.valueOf( (String) request.getAttribute("max")))/3+1 ;
   int   currentpage= Integer.valueOf( (String) request.getAttribute("currentpage")) ;
%>
<%@ include file="../inc/admintop.jsp"%>
<div class="row">
    <div class="col-xs-12">
        <table class="table">
            <tr>
                <th>时间出售名称</th>
                <th>时间出售详情</th>
                <th>时间出售提交人</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${result}" var="item">
                <tr>
                    <td>
                        <a href="<%=ctxpath%>/user/shijiangg.jsp?id=${item.shijianchushouid}">
                        <c:out value="${item.shijianchushoumingcheng}" />
                        </a>
                    </td>
                    <td>
                        <c:out value="${item.beizhu}" />
                    </td>
                    <td>
                        <a href="<%=ctxpath%>/user/bierenxinxi.jsp?zhao=${item.tijiaorenXingming}">
                            <c:out value="${item.tijiaorenXingming}" />
                        </a>
                    </td>
                    <th>
                        <a href="<%=ctxpath%>/admin/shenhetongguo?id=${item.shijianchushouid}&currentpage=<%=currentpage%>&leixing=shijianchushou" style="margin-right: 50px" >审核通过</a>
                        <a href="<%=ctxpath%>/admin/shenhebutongguo?id=${item.shijianchushouid}&currentpage=<%=currentpage%>&leixing=shijianchushou">审核不通过</a>
                    </th>
                </tr>
            </c:forEach>
        </table>
        <div align="center">
            <%
                for (int i = 0; i <max ; i++) { %>
            <label><a href="shijiangg.jsp?currentpage=<%=i%>"><%=i+1%></a></label>
            <% }%>
            <br>
            <br>
            <br>
        </div>
        <button style="align-content: center"><a href="<%=ctxpath%>/admin/guanli.jsp">返回</a></button>

    </div>

</div>
<%@ include file="../inc/bottom.jsp"%>